package yadong.example.code.jaxb;

import java.util.ArrayList;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;


public class VenueInfo {
	private String address;
	private String city;
	private String state;
	private String zip;
	private String upcomingVenueTitle;
	private String upcomingVenueId;
	private ArrayList<Category> upcomingVenueCategories;
	private String dateAbstract;
	private String startEndDates;
	private ArrayList<String> phones;

	public VenueInfo() {
	}
	public VenueInfo(String val) {
		this.address=val;
		this.city=val;
		this.state=val;
		this.zip=val;
		this.upcomingVenueTitle=val;
		this.upcomingVenueId=val;
		this.upcomingVenueCategories=new ArrayList<Category>();
		this.upcomingVenueCategories.add(new Category(val));
		this.upcomingVenueCategories.add(new Category(val));
		this.upcomingVenueCategories.add(new Category(val));
		this.dateAbstract=val;
		this.startEndDates=val;
		this.phones=new ArrayList<String>();
		this.phones.add(val);
		this.phones.add(val);
		this.phones.add(val);
	}
	public VenueInfo(String address,
				   	 String city,
				     String state,
				     String zip,
				     String upcomingVenueTitle,
				     String upcomingVenueId,
				     ArrayList<Category> upcomingVenueCategories,
				     String dateAbstract,
				     String startEndDates,
				     ArrayList<String> phones) {
		this.address=address;
		this.city=city;
		this.state=state;
		this.zip=zip;
		this.upcomingVenueTitle=upcomingVenueTitle;
		this.upcomingVenueId=upcomingVenueId;
		this.upcomingVenueCategories=upcomingVenueCategories;
		this.dateAbstract=dateAbstract;
		this.startEndDates=startEndDates;
		this.phones=phones;
	}
	
	@XmlElementWrapper(name="phones")
	@XmlElement(name="phone")
	public ArrayList<String> getPhones() {
        return phones;
    }
    public void setPhones(ArrayList<String> phones) {
        this.phones = phones;
    }
    public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getCity() {
		return city;
	}
	public void setCity(String city) {
		this.city = city;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	public String getZip() {
		return zip;
	}
	public void setZip(String zip) {
		this.zip = zip;
	}
	public String getUpcomingVenueTitle() {
		return upcomingVenueTitle;
	}
	public void setUpcomingVenueTitle(String upcomingVenueTitle) {
		this.upcomingVenueTitle = upcomingVenueTitle;
	}
	public String getUpcomingVenueId() {
		return upcomingVenueId;
	}
	public void setUpcomingVenueId(String upcomingVenueId) {
		this.upcomingVenueId = upcomingVenueId;
	}
	
	@XmlElementWrapper(name="upcoming-venue-categories")
	@XmlElement(name="category")
	public ArrayList<Category> getUpcomingVenueCategories() {
		return upcomingVenueCategories;
	}
	public void setUpcomingVenueCategories(
			ArrayList<Category> upcomingVenueCategories) {
		this.upcomingVenueCategories = upcomingVenueCategories;
	}
	public String getDateAbstract() {
		return dateAbstract;
	}
	public void setDateAbstract(String dateAbstract) {
		this.dateAbstract = dateAbstract;
	}
	public String getStartEndDates() {
		return startEndDates;
	}
	public void setStartEndDates(String startEndDates) {
		this.startEndDates = startEndDates;
	}
}
